package jm.nj.demo18main.demo04;

import java.io.Serializable;

public class User implements Serializable {
    private static final long serialVersionUID = -4586360119328441842L;
    /**
     * 自定义序列号
     * 根据类的定义计算出来的序列号
     */
    private String username;
    private String password;

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
